home *** CD-ROM | disk | FTP | other *** search
- stop();
- _visible = false;
- LEAmap.oBroadcaster.addListener(this);
- SCROLL_FACTOR = 5;
- left_btn.onPress = function()
- {
- startScroll(-1,0);
- };
- right_btn.onPress = function()
- {
- startScroll(1,0);
- };
- up_btn.onPress = function()
- {
- startScroll(0,-1);
- };
- down_btn.onPress = function()
- {
- startScroll(0,1);
- };
- left_btn.onRelease = left_btn.onReleaseOutside = right_btn.onRelease = right_btn.onReleaseOutside = up_btn.onRelease = up_btn.onReleaseOutside = down_btn.onRelease = down_btn.onReleaseOutside = function()
- {
- stopScroll();
- };
- startScroll = function(x, y)
- {
- nmXScrollBy = SCROLL_FACTOR * x * -1;
- nmYScrollBy = SCROLL_FACTOR * y * -1;
- this.onEnterFrame = function()
- {
- _parent.map_mc._x += nmXScrollBy;
- _parent.map_mc._y += nmYScrollBy;
- };
- };
- stopScroll = function()
- {
- delete this.onEnterFrame;
- };
- onZoomChange = function(nmS)
- {
- _visible = nmS != 100 ? true : false;
- };
- onShowDetailMap = function()
- {
- gotoAndStop("l_fade_out");
- play();
- };
- onHideDetailMap = function()
- {
- gotoAndStop("l_fade_up");
- play();
- };
-